$tabs--height  : 88upx;
// 背景色
$tabs--background-color : #fff;
// 下划线颜色
$tabs--line-background-color : $brand-primary;


.ui-tabs {
  position: relative;
  -webkit-tap-highlight-color: transparent;

  &__wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;

    &--page-top {
      position: fixed;
    }

    &--content-bottom {
      top: auto;
      bottom: 0;
    }

    &--scrollable {
      .ui-tab {
        flex: 0 0 22%;
      }
    }
  }

  &__scroll--card {
    border-radius: 2px;
  }

  &__nav {
    position: relative;
    display: flex;
    user-select: none;
    background-color: $tabs--background-color;

    &--line {
      height: 100%;
    }

    &--card {
      .ui-tab {
        &:last-child {
          border-right: none;
        }

        &.ui-tab--active {
        }
      }
    }
  }
  // 下划线
  &__line {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 3upx;
    border-radius: 3upx;
    background-color: $tabs--line-background-color;
  }

  &--line {
    .ui-tabs__wrap {
    }
  }

  &--card {
    margin: 0 15px;

    .ui-tabs__wrap {
    }
  }

  &__content {
    overflow: hidden;
  }

  &__track {
    position: relative;
  }
}

.ui-tab {
  position: relative;
  flex: 1;
  box-sizing: border-box;
  min-width: 0;
  /* hack for flex ellipsis */
  padding: 0 5upx;
  font-size: $base-text-font-size;
  line-height: $tabs--height;
  text-align: center;
  cursor: pointer;

  &--active {
    font-weight: 500;
    color: $brand-primary;
  }

  &--disabled {
  }

  &__title {
    &__info {
      position: relative !important;
      top: -1px !important;
      display: inline-block;
      transform: translateX(0) !important;
    }
  }
}
